#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.68])
AC_INIT(rtp2hdb, 0.2, mm148881@gmail.com)
AM_INIT_AUTOMAKE(g_rtp2hdb, 0.2)
AC_CONFIG_SRCDIR([src/MyToken.h])
AC_CONFIG_HEADERS([config.h])
AC_PROG_INSTALL

# Checks for programs.
AC_PROG_CXX([g++ c++ icpc])
AC_LANG([C++])

# Checks for libraries.

AC_CHECK_LIB([boost_program_options],main,,AC_MSG_ERROR([boost is needed. You must provide a path to the library!]))
AC_CHECK_LIB([boost_regex],main,,AC_MSG_ERROR([boost is needed. You must provide a path to the library!]))

# Checks for header files.

AC_CHECK_HEADERS([boost/program_options.hpp],,AC_MSG_ERROR([No header files found for boost program_options! ]))
AC_CHECK_HEADERS([boost/regex.hpp],,AC_MSG_ERROR([No header files found for boost regex! ]))

AC_PREFIX_DEFAULT([$HOME])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_SIZE_T

# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([rint sqrt])

AC_OUTPUT([Makefile src/Makefile])

